package com.codejob.portal.entity.project;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.codejob.portal.entity.IdEntity;
import com.codejob.portal.entity.user.Users;

@Entity
@Table(name = "proj_bidComment")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class BidComment extends IdEntity {
	
	private Users user;
	
	private String comment;
	
	private BidProject bidProject;

	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="bidUserId")
	public Users getUser() {
		return user;
	}

	public void setUser(Users user) {
		this.user = user;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="bidProjectId")
	public BidProject getBidProject() {
		return bidProject;
	}

	public void setBidProject(BidProject bidProject) {
		this.bidProject = bidProject;
	}
	
	

	
}
